package com.commons.exception;

import org.springframework.http.HttpStatus;

/**
 * 统一异常处理
 */
public class BadRequestException extends RuntimeException{

    private Integer status=HttpStatus.BAD_REQUEST.value();

    public Integer getStatus() {
        return status;
    }

    public BadRequestException(String msg) {
        super(msg);
    }

    public BadRequestException(String message, Integer status) {
        super(message);
        this.status = status;
    }
}
